\name{PRBOdbClose}
\alias{PRBOdbClose}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Close a connection to PRBOdb  }
\description{
  Close a connection to a PRBO or BMDE database.
}
\usage{
PRBOdbClose(con, ODBC = TRUE)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{con}{ name of MySQL connection }
  \item{ODBC}{ Boolean to denote whether the connection needs to be closed using ODBC protocol (or if FALSE, DBI) }
}
\details{
    For most users, this function will not be used directly, but
    is instead needed within other Ravian functions.
    
    Access to the PRBOdb or BMDE databases requires
    authentication.  If you are using a PRBO computer, you most
    likely are configured properly.  However, other users will
    need to request the username and passwords required.  
    
    It is always good practice to close connections after they
    have been used.
}
\value{
  ~Describe the value returned
  If it is a LIST, use
  \item{comp1 }{Description of 'comp1'}
  \item{comp2 }{Description of 'comp2'}
  ...
}

\author{Mark Herzog \email{mherzog@prbo.org}}

\seealso{ \code{\link{PRBOdbConnect}}}
\examples{
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--    or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(con, ODBC=FALSE) {
    if (ODBC==TRUE) {
        odbcClose(con)
    } else {
        dbDisconnect(con)
    }
  }
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ connection }
\keyword{ database }
